package com.code9xs.service;

import com.alibaba.fastjson.JSONArray;
import com.code9xs.pojo.Association;
import com.code9xs.pojo.User;
import com.code9xs.util.PageUtil;

/**
 * @author Suhd
 * @date 2021/5/24
 * @time 12:14
 * @wechat i9xswanan
 * @github https://github.com/Code9xs
 */
public interface ManageService {
    PageUtil getAllUserInfo(Integer page,Integer pageSize);

    Boolean modifyUserInfo(User user, JSONArray rolesArray);

    boolean deleteUser(Integer id);

    boolean modifyAssociation(Association association);

    PageUtil getAllAssociation(Integer page, Integer pageSize);

    boolean deleteAssociation(Integer id);

    PageUtil getAllArticle(Integer page, Integer pageSize);

    boolean deleteArticle(Integer id);
}
